﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TestReport
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'Claim_DataSet.Claim' table. You can move, or remove it, as needed.
            
            this.ClaimTableAdapter.Fill(this.Claim_DataSet.Claim);
            this.reportViewer1.RefreshReport();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //Microsoft.Reporting.WebForms.ReportViewer rview = new Microsoft.Reporting.WebForms.ReportViewer();
            //rview.ServerReport.ReportServerUrl = new Uri(WebConfigurationManager.AppSettings[201DReportServer201D]);

            //System.Collections.Generic.List<Microsoft.Reporting.WebForms.ReportParameter> paramList = new System.Collections.Generic.List<Microsoft.Reporting.WebForms.ReportParameter>();
            //paramList.Add(new Microsoft.Reporting.WebForms.ReportParameter(201DParam12033, 201CValue12033));
            //rview.ServerReport.ReportPath = 201C/ReportFolder/ReportName201D;
            //rview.ServerReport.SetParameters(paramList);
            //byte[] bytes = rview.ServerReport.Render(format, deviceInfo, out mimeType, out encoding, out extension, out streamids, out warnings);


            //Microsoft.Reporting.WebForms.LocalReport s = new Microsoft.Reporting.WebForms.LocalReport();
            


        }
    }
}